import request from '@/utils/request'

// 查询服务依赖类型列表
export function listServiceDependencyType(query) {
  return request({
    url: '/cmdb/serviceDependencyType/list',
    method: 'get',
    params: query
  })
}

// 查询服务依赖类型详细
export function getServiceDependencyType(id) {
  return request({
    url: '/cmdb/serviceDependencyType/' + id,
    method: 'get'
  })
}

// 新增服务依赖类型
export function addServiceDependencyType(data) {
  return request({
    url: '/cmdb/serviceDependencyType',
    method: 'post',
    data: data
  })
}

// 修改服务依赖类型
export function updateServiceDependencyType(data) {
  return request({
    url: '/cmdb/serviceDependencyType',
    method: 'put',
    data: data
  })
}

// 删除服务依赖类型
export function delServiceDependencyType(id) {
  return request({
    url: '/cmdb/serviceDependencyType/' + id,
    method: 'delete'
  })
}
